﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace GUI
{
    public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
    {
        public XtraForm1()
        {
            InitializeComponent();
        }


        private void XtraForm1_Load(object sender, EventArgs e)
        {
            traCuuChuyenBay_GUI1.BringToFront();
        }

        private void itemNhanLich_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
           nhanLichChuyenBay_GUI1.BringToFront();
        }

        private void itemBanVe_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            banVeChuyenBay_GUI1.BringToFront();
            banVeChuyenBay_GUI1.Refresh();
        }

        private void itemDatVe_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            ghiNhanDatVe_GUI1.Refresh();
            ghiNhanDatVe_GUI1.BringToFront();
        }

        private void itemTraCuu_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            traCuuChuyenBay_GUI1.BringToFront();
        }

        private void itemBaoCao_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            lapBaoCaoTháng_GUI1.BringToFront();
        }

        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            lapBaoCaoNam_GUI1.BringToFront();
        }

        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            GUI.Form2 f = new GUI.Form2();
            f.ShowDialog();
        }

       

    }
}